package com.blog.backend.service;

import com.blog.backend.model.BlogPlate;
import com.blog.backend.req.EditPlateReq;
import com.blog.backend.req.InsertPlateReq;
import com.blog.backend.req.PlateListReq;
import com.blog.backend.vo.PageResult;

/**
 * @author fanggs
 * @Date 2021/7/14 0014 10:01
 */
public interface PlateService {
    /**
     * 新增板块分类
     * @param req
     * @return
     */
    Boolean insertPlate(InsertPlateReq req);

    /**
     * 板块列表查询
     * @param req
     * @return
     */
    PageResult selectList(PlateListReq req);

    /**
     * 查看详情
     * @param plateId
     * @return
     */
    BlogPlate queryDetail(String plateId);

    /**
     * 编辑板块
     * @param req
     * @return
     */
    Integer editDetail(EditPlateReq req);

    /**
     * 删除板块
     * @param plateId
     * @return
     */
    Integer deletePlate(String plateId);
}
